<!DOCTYPE html>
<html>
<head>
	<#head title="定时任务详细"/>
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">

		<!--- if(name == 'jobLog'){ --->
		<form class="form-horizontal m-t" id="jobLogForm" >
			<div class="form-group">
				<label class="col-sm-3 control-label">日志序号：</label>
				<div class="form-control-static" >${jobLog.jobLogId}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">任务名称：</label>
				<div class="form-control-static" >${jobLog.jobName}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">任务分组：</label>
				<div class="form-control-static" >${jobLog.jobGroup}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">调用目标字符串：</label>
				<div class="form-control-static" >${jobLog.invokeTarget}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">日志信息：</label>
				<div class="form-control-static" >${jobLog.jobMessage}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">执行状态：</label>
				<div class="form-control-static" class="${jobLog.status == '0' ? 'label label-primary' : 'label label-danger'}" >${jobLog.status == '0' ? '正常' : '失败'}
				</div>
			</div>
			<div class="form-group" style="'display:' + ${jobLog.status == '0' ? 'none' : 'block'}">
				<label class="col-sm-3 control-label">异常信息：</label>
				<div class="form-control-static" >${jobLog.exceptionInfo}
				</div>
			</div>
		</form>
		<!--- } --->


		<!--- if(name == 'job'){ --->
	<form class="form-horizontal m-t" id="jobForm" >
	    <div class="form-group">
			<label class="col-sm-3 control-label">任务序号：</label>
			<div class="form-control-static" >${job.jobId}
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">任务名称：</label>
			<div class="form-control-static" >${job.jobName}
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">任务分组：</label>
			<div class="form-control-static" >${job.jobGroup}
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">调用目标字符串：</label>
			<div class="form-control-static" >${job.invokeTarget}
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">执行表达式：</label>
			<div class="form-control-static" >${job.cronExpression}
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">下次执行时间：</label>
			<div class="form-control-static" >${job.nextValidTime,'yyyy-MM-dd HH:mm:ss'}
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">执行策略：</label>
			<!--- if(job.misfirePolicy == '0'){ --->
			<div class="form-control-static">默认策略</div>
			<!--- } --->
			<!--- if(job.misfirePolicy == '1'){ --->
			<div class="form-control-static">立即执行</div>
			<!--- } --->
			<!--- if(job.misfirePolicy == '2'){ --->
			<div class="form-control-static">执行一次</div>
			<!--- } --->
			<!--- if(job.misfirePolicy == '3'){ --->
			<div class="form-control-static">放弃执行</div>
			<!--- } --->

		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">并发执行：</label>
			<div class="form-control-static" class="${job.concurrent == '0' ? 'label label-primary' : 'label label-danger'}" >${job.concurrent == '0' ? '允许' : '禁止'}
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">执行状态：</label>
			<div class="form-control-static" class="${job.status == '0' ? 'label label-primary' : 'label label-danger'}" >${job.status == '0' ? '正常' : '暂停'}
			</div>
		</div>
	</form>
	<!--- } --->
    </div>
</body>
</html>